package com.njtoyo.taxi.admin.mapper.secondary.enums.dashboard;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum TimeIntervalType {
    // dashboard缓存的时间间隔枚举
    minute(1, "按分钟"),
    daily(2, "按天");

    @EnumValue
    private final int code;
    private final String desc;

    TimeIntervalType(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }
}
